<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>登录</title>
</head>
<body>
<form action="/login" method="post">
  <input type="text" th:if="${_csrf}" name="_csrf" th:value="${_csrf.getToken()}"><br>
  用户名：<input type="text" name="username"><br>
  密码：<input type="password" name="password"><br>
  记住我：<input type="checkbox" name="rememberMe" value="true"><br>
  <button type="submit">登录</button>
  <button type="reset">重置</button>
</form>
</body>
</html>